/**
 * - 作者: DoooReyn
 * - 日期: 2023.11.17
 */

/** 富文本整体样式 */
export interface RichTextStyle {
    maxWidth: number;
    margin: number[] & { length: 4 };
    space: number[] & { length: 2 };
    align: 'top' | 'bottom' | 'center';
    font: string;
    rowHeight: number;
    lineWeight: number;
    background: string;
    fillColor: string;
    strokeColor: string;
}

/** 文本注释样式 */
export type TextCommentStyle = 'none' | 'underline' | 'waveline' | 'strikeout' | 'highlight' | 'rect' | 'roundrect';

/** 文本样式 */
export interface TextStyle {
    value: string;
    font: string;
    strokeColor: string;
    shadow: [number, number, number, string];
    comment: [TextCommentStyle, string, number];
}

/** 图片样式 */
export interface ImageStyle {
    value: string;
    atlas: string;
    bundle: string;
    size: number[] & { length: 2 };
}
